package com.msb.order.controller;

import com.msb.order.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FlowControllerModleContoller {

    @Autowired
    private UserService userService;

    @GetMapping("/flowModle/read")
    public String readRead(Integer orderId){
        return  "读资源";
    }
    @GetMapping("/flowModle/write")
    public String relation2(Integer orderId){
        return  "写资源";
    }


    @GetMapping("/linkModle/test1")
    public String test1(Integer userId){
        String user = userService.getUser();
        return  user;
    }
    @GetMapping("/linkModle/test2")
    public String test2(Integer userId){
        String user = userService.getUser();
        return  user;
    }
}